/*
 @author nuarharuha <nhnoah@gmail.com>
*/
/*
  WebFontConfig = {
    google: { families: [ 'Six+Caps::latin','Jockey+One::latin' ] }
  };
  (function() {
    var wf = document.createElement('script');
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })();
*/

/**
 * projects page
 */

    $(document).ready(function() {
         function xhrload(uri){        
            $.ajax({
              url:  'pages/' + uri + '.html',
              success: function(data) { 
                $('#clientdata').html(data);
              }
            });
         };
         
        $(".pgnation a").click(function() {
            xhrload($(this).attr('rel'));
            return false;
        });       
    }); 
/**    
  <!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID.
       mathiasbynens.be/notes/async-analytics-snippet -->
*/       
    var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
    (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
    g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
    s.parentNode.insertBefore(g,s)}(document,'script'));   
    
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'en',
    includedLanguages: 'zh-CN,en,id,ms',
    autoDisplay: false
  }, 'google_translate_element');
}


/**
 * Suckerfish menu
 *
 */
 
jQuery(function(){
    jQuery('ul.sf-menu').superfish();
}); 